package com.wise.summer.v1.cms.content.applicationcolumn;

import com.wise.entities.content.ApplicationColumn;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.AssertEnum;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.summer.BasicSummer;
import com.wise.model.content.enums.ArticleColumnShowStatus;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.*;
import static com.wise.model.content.ContentErrMsgs.Err_001600250003;

/**
 * @author hejiawei
 * @date 2020/10/27 11:02
 */
@Setter
@Getter
@Publish
@ApiInfo("更新application栏目")
public class UpdateApplicationColumnById extends BasicSummer<ApplicationColumn> {
    @NotBlank(msg = Err_001600250013)
    private String id;

    @ApiInfo("栏目名")
    @NotBlank(msg = Err_001600250010)
    private String columnName;

    @ApiInfo("是否显示")
    @NotNull(msg = Err_001600250011)
    @AssertEnum(enumClass = ArticleColumnShowStatus.class, msg = Err_001600250016)
    private Integer showState;

    @ApiInfo("排序")
    @NotNull(msg = Err_001600250003)
    private Integer sort;

    @ApiInfo("栏目自定义路径")
    private String alias;
}
